
//define const
`define NOP                    32'h0f
`define INST_INST_5            5
`define MTVEC                  32'h8
`define RSTPC                  32'h0
`define ADD                    3'b000
`define SLL                    3'b001
`define SLT                    3'b010
`define SLTU                   3'b011
`define XOR                    3'b100
`define SRL                    3'b101
`define OR                     3'b110
`define AND                    3'b111
`define BEQ                    3'b000
`define BNE                    3'b001
`define BLT                    3'b100
`define BGE                    3'b101
`define BLTU                   3'b110
`define BGEU                   3'b111
`define INST_OP2               16:12
`define INST_WAIT              5'b00010
`define INST_INST              6:2
`define OP1_W                  3'b010
`define INST_RES3              19:7
`define OP4_MRET               10'b1100000010
`define INST_OP0               14:12
`define OP0_GEU                3'b111
`define OP0_LTU                3'b110
`define INST_LOAD              5'b00000
`define INST_OP3               16:12
`define OP1_B                  3'b000
`define INST_STORE             5'b01000
`define OP1_H                  3'b001
`define INST_AUIPC             5'b00101
`define INST_RES5              11:7
`define INST_BRANCH            5'b11000
`define INST_CAL               5'b01100
`define INST_SRC2              24:20
`define INST_IMM0              31:12
`define INST_DST               11:7
`define INST_OP4               29:20
`define INST_IMM2              36:25
`define INST_SRC20             26:22
`define OP4_ECALL              10'b0000000000
`define INST_RES6              31:20
`define INST_IMM1              31:20
`define INST_CALI              5'b00100
`define OP2_LTU                5'b00011
`define INST_LUI               5'b01101
`define INST_SRC1              19:15
`define INST_JAL               5'b11011
`define INST_IMM10             33:22
`define INST_RES2              31:27
`define INST_SYSTEM            5'b11100
`define INST_RES1              14:12
`define INST_LABEL1            37:25
`define OP3_LTU                5'b00011
`define INST_SRC10             21:17
`define INST_JALR              5'b11001
`define INST_RES4              31:30
`define OP1_HU                 3'b101
`define INST_OP1               14:12
`define INST_RES0              1:0
`define INST_LABEL0            32:12
`define OP1_BU                 3'b100
